package com.tvunetworks.center.device.mapper;

import com.tvunetworks.center.device.model.DeviceGeo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.special.InsertListMapper;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @program:
 * @description:
 * @author HenryChen
 * @create: 5/23/2019 1:54 PM
 **/
public interface DeviceGeoMapper extends Mapper<DeviceGeo>, InsertListMapper<DeviceGeo> {
    /**
     *
     * @param peerIds peerIds
     * @return List
     */
    List<DeviceGeo> getDevicePositionByPeerIds(@Param("peerIds") List<String> peerIds);

    /**
     *
     * @param userId userId
     * @param condition condition
     * @return  List
     */
    List<String>  listRId(@Param("userId")String userId,@Param("condition") String condition);

    /**
     *
     * @param userId userId
     * @return List
     */
    List<String>  listPeerIds(@Param("userId")String userId);

    /**
     *
     * @param list list
     */
    void   batchUpdateGeoInfo(@Param("list") List<DeviceGeo> list);

}
